<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <title>自定义菜单</title>
        <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css" />
        <style type="text/css">
            .order-list a {
                position: relative;
            }
            .order-list span {
                float: right;
                margin-right: 20px;
            }
        </style>
    </head>

    <body>
        <include file="Index/head"/>
        <div class="wrapper main-wrapper wrapper-content ">
            <div class="page-menubar">
                <!--<div class="menu-header">微信管理</div>-->
                <ul class="order-list">
                    <li class="active">
                        <a href="{:U('Wx/wx_menu/wid/1')}"><img src="__PUBLIC__/images/ic-11.png" alt="" class="com-icon">自定义菜单</a>
                    </li>
                    <li>
                        <a href="{:U('Wx/huifu')}"><img src="__PUBLIC__/images/ic-12.png" alt="" class="com-icon">关注时回复</a>
                    </li>
                    <li>
                        <a href="{:U('Wx/zdhf')}"><img src="__PUBLIC__/images/ic-13.png" alt="" class="com-icon">自动回复</a>
                    </li>
                </ul>
            </div>
            <!--主要内容-->
            <div class="page-content" style="display: block;">
                <!--内容标题-->
                <div class="page-heading">
                    <h2>自定义菜单</h2>
                </div>
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <form id="form1" name="form1" method="post" action="">
                            <div class="g-main-body">
                                <div class="g-main-content m-form-horizontal">

                                    <span><div class="alert alert-success text-center"><font size="+2">菜单一</font></div></span>
                                    <table id="table1"  class="table">
                                        <tr>
                                            <td>
                                                一级菜单：
                                            </td>
                                            <td>
                                                <select name="first_type" id="select">
                                                    <option value="{$data['first_type']}" selected="selected">{$data['first_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first"  value="{$data.first}" len="50" class="form-control" />
                                            </td>
                                            <td> <input type="text" name="first_value"  value="{$data.first_value}" len="250" class="form-control" /></td>
                                        </tr>

                                        <tr>
                                            <td>
                                                二级菜单1：
                                            </td>
                                            <td>
                                                <select name="first1_1_type" id="select">
                                                    <option value="{$data.first1_1_type}" selected="selected">{$data.first1_1_type}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first1_1"  value="{$data['first1_1']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="first1_1_value"  value="{$data['first1_1_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单2：
                                            </td>
                                            <td>
                                                <select name="first1_2_type" id="select">
                                                    <option value="{$data['first1_2_type']}" selected="selected">{$data['first1_2_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first1_2"  value="{$data['first1_2']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="first1_2_value"  value="{$data['first1_2_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单3：
                                            </td>
                                            <td>
                                                <select name="first1_3_type" id="select">
                                                    <option value="{$data['first1_3_type']}" selected="selected">{$data['first1_3_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first1_3"  value="{$data['first1_3']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="first1_3_value"  value="{$data['first1_3_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单4：
                                            </td>
                                            <td>
                                                <select name="first1_4_type" id="select">
                                                    <option value="{$data['first1_4_type']}" selected="selected">{$data['first1_4_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first1_4"  value="{$data['first1_4']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="first1_4_value"  value="{$data['first1_4_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单5：
                                            </td>
                                            <td>
                                                <select name="first1_5_type" id="select">
                                                    <option value="{$data['first1_5_type']}" selected="selected">{$data['first1_5_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="first1_5"  value="{$data['first1_5']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="first1_5_value"  value="{$data['first1_5_value']}" len="250" class="form-control" /></td>
                                        </tr>

                                    </table>
                                    <span><div class="alert alert-success text-center"><font size="+2">菜单二</font></div></span>
                                    <table id="table1"  class="table">
                                        <tr>
                                            <td>
                                                一级菜单：
                                            </td>
                                            <td>
                                                <select name="second_type" id="select">
                                                    <option value="{$data['second_type']}" selected="selected">{$data['second_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second"  value="{$data.second}" len="50" class="form-control" />
                                            </td>
                                            <td> <input type="text" name="second_value"  value="{$data.second_value}" len="250" class="form-control" /></td>
                                        </tr>

                                        <tr>
                                            <td>
                                                二级菜单1：
                                            </td>
                                            <td>
                                                <select name="second1_1_type" id="select">
                                                    <option value="{$data['second1_1_type']}" selected="selected">{$data['second1_1_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second1_1"  value="{$data['second1_1']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="second1_1_value"  value="{$data['second1_1_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单2：
                                            </td>
                                            <td>
                                                <select name="second1_2_type" id="select">
                                                    <option value="{$data['second1_2_type']}" selected="selected">{$data['second1_2_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second1_2"  value="{$data['second1_2']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="second1_2_value"  value="{$data['second1_2_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单3：
                                            </td>
                                            <td>
                                                <select name="second1_3_type" id="select">
                                                    <option value="{$data['second1_3_type']}" selected="selected">{$data['second1_3_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second1_3"  value="{$data['second1_3']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="second1_3_value"  value="{$data['second1_3_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单4：
                                            </td>
                                            <td>
                                                <select name="second1_4_type" id="select">
                                                    <option value="{$data['second1_4_type']}" selected="selected">{$data['second1_4_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second1_4"  value="{$data['second1_4']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="second1_4_value"  value="{$data['second1_4_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单5：
                                            </td>
                                            <td>
                                                <select name="second1_5_type" id="select">
                                                    <option value="{$data['second1_5_type']}" selected="selected">{$data['second1_5_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="second1_5"  value="{$data['second1_5']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="second1_5_value"  value="{$data['second1_5_value']}" len="250" class="form-control" /></td>
                                        </tr>

                                    </table>
                                    <span><div class="alert alert-success text-center"><font size="+2">菜单三</font></div></span>
                                    <table id="table1"  class="table">
                                        <tr>
                                            <td>
                                                一级菜单：
                                            </td>
                                            <td>
                                                <select name="third_type" id="select">
                                                    <option value="{$data['third_type']}" selected="selected">{$data['third_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third"  value="{$data.third}" len="50" class="form-control" />
                                            </td>
                                            <td> <input type="text" name="third_value"  value="{$data.third_value}" len="250" class="form-control" /></td>
                                        </tr>

                                        <tr>
                                            <td>
                                                二级菜单1：
                                            </td>
                                            <td>
                                                <select name="third1_1_type" id="select">
                                                    <option value="{$data['third1_1_type']}" selected="selected">{$data['third1_1_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third1_1"  value="{$data['third1_1']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="third1_1_value"  value="{$data['third1_1_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单2：
                                            </td>
                                            <td>
                                                <select name="third1_2_type" id="select">
                                                    <option value="{$data['third1_2_type']}" selected="selected">{$data['third1_2_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third1_2"  value="{$data['third1_2']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="third1_2_value"  value="{$data['third1_2_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单3：
                                            </td>
                                            <td>
                                                <select name="third1_3_type" id="select">
                                                    <option value="{$data['third1_3_type']}" selected="selected">{$data['third1_3_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third1_3"  value="{$data['third1_3']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="third1_3_value"  value="{$data['third1_3_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单4：
                                            </td>
                                            <td>
                                                <select name="third1_4_type" id="select">
                                                    <option value="{$data['third1_4_type']}" selected="selected">{$data['third1_4_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third1_4"  value="{$data['third1_4']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="third1_4_value"  value="{$data['third1_4_value']}" len="250" class="form-control" /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                二级菜单5：
                                            </td>
                                            <td>
                                                <select name="third1_5_type" id="select">
                                                    <option value="{$data['third1_5_type']}" selected="selected">{$data['third1_5_type']}</option>
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </select>

                                            </td>
                                            <td>  <input type="text" name="third1_5"  value="{$data['third1_5']}" len="50"  class="form-control"/></td>
                                            <td> <input type="text" name="third1_5_value"  value="{$data['third1_5_value']}" len="250" class="form-control" /></td>
                                        </tr>

                                    </table>
                                    <div class="formitm form-submit">
                                        <div class="ipt" style="padding:0 0 20px;">
                                            <div class="tip" id="tips"></div>
                                            <button type="submit" class="btn btn-primary">保存</button>
                                            <a href="{:U('Wx/create_menu',array('wid'=>'1'))}" ><button type="button" class="btn btn-link">先点击左边保存，然后再点击此处生成自定义菜单</button></a>
                                        </div>
                                    </div>  



                                </div>
                            </div>

                        </form>
                    </div>

                </div>
            </div>
        </div>
    </body>
    <script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
                                function tj() {

                                    $.ajax({
                                        type: "POST",
                                        url: "__CONTROLLER__/Paysetting",

                                        cache: false,
                                        data: $('#tab').serialize(),

                                        success: function (data) {
                                            data = $.trim(data);
                                            switch (data) {

                                                case '0':
                                                    alert('修改成功');
                                                    window.location.replace("__CONTROLLER__/Paysetting")
                                                    break;
                                                case '1':
                                                    alert('修改失败');

                                                    break;
                                                case '3':
                                                    alert('用户编号已存在');

                                                    break;

                                                default:
                                                    alert(data);
                                            }

                                        }




                                    })


                                }
    </script>

    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function () {
            $('.demo-cancel-click').click(function () {
                return false;
            });
        });
    </script>
</html>